package com.itheima.proxydemo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Star implements Action{

    private String name;
    @Override
    public void sing(String name) {
        System.out.println("明星" + this.name + "在唱歌《" + name + "》");
    }

    @Override
    public String dance() {
        System.out.println("明星" + name + "在跳舞");
        return "谢谢，谢谢";
    }
}
